﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using Weight.Base;
using Weight.Model;
using Dapper;
using Dapper.Contrib;

namespace Weight.Dal
{
    public class DalAliasTemplate
    {
        //获取所有词组别名
        public IEnumerable<AliasTemplateEntity> QueryAll()
        {
            using (IDbConnection conn = SessionFactory.CreateConnection())
            {
                string sql = "select *  from AliasTemplate where IsValid=@IsValid";
                return conn.Query<AliasTemplateEntity>(sql,new { IsValid=true });
            }
        }
       
    }
}
